package com.atguigu.daedlock;

public class Lock02 {
    public synchronized void lock(){
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("我是锁二");
    }
}
